home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 June: Reference Library / Dev.CD Jun 99 RL Disk 1.toast / Technical Documentation / Develop / Additional Articles / Developing Symbiotic Apps / Symbiotic Samples / Symbiotic server source / Fractal Daemon / misc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-01-13  |  1.2 KB  |  49 lines  |  [TEXT/CWIE]

  1. /* misc.h -- misc defines for misc.c (Mandeld UNIX daemon)
  2.  *
  3.  * %W%
  4.  *
  5.  * Author: Scott Mulligan
  6.  * Copyright 1993 Apple Computer, Inc.
  7.  * All Rights Reserved.
  8.  *
  9.  * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF APPLE COMPUTER, INC.
  10.  * The copyright notice above does not evidence any actual or
  11.  * intended publication of such source code.
  12.  *
  13.  */
  14.  
  15.  
  16. #define ACLIST        "/symbiotics/sysadm.aclist"
  17. #define LOCKFILE    "/symbiotics/mandeld.lock"
  18. #define SIZEOFPID    12
  19.  
  20.  
  21. #define DATABUFSIZE    64*1024
  22.  
  23.  
  24. /* Message indices for tell_mac() */
  25. #define ALREADY_LOCKED  1
  26. #define CANT_LOCK       2
  27. #define UNKNOWN_ERROR   3
  28.  
  29.  
  30. /* timeout values for client HEARTBEAT know-when-to-die scheme
  31.  *
  32.  * we check to see how long it has been since we heard from the client
  33.  * every "HEARTBEAT_CHECK" number of seconds.  This should correspond
  34.  * to how often the we expect the client to send us HEARTBEAT events.
  35.  *
  36.  * we send a HEARTBEAT event to the client every "HEARTBEAT_SEND"
  37.  * number of seconds.
  38.  *
  39.  * if we "miss" MAX_MISSED_HEARTBEATS in a row...
  40.  * we will assume that the client has gone away
  41.  */
  42. #define HEARTBEAT_CHECK        30
  43. #define HEARTBEAT_SEND        HEARTBEAT_CHECK
  44. #define MAX_MISSED_HEARTBEATS    6
  45.  
  46. #ifndef SUCCESS
  47. #define SUCCESS 0
  48. #endif
  49.